<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<portlet:defineObjects />


<portlet:actionURL var="editmarkdURL">
	<portlet:param name="action" value="editsavemarkd"/>
</portlet:actionURL>
<table border="1px" cellpadding="20px">
	<tr>
		<td>Mã môn học</td>
		<td>Tên môn học</td>
		<td>Số tín chỉ</td>
		<td>Điểm</td>
	</tr>
		<c:forEach items="${listSubject}" var="e">
			<tr>
				<td>${e.idSubject}</td>
				<td>${e.nameSubject}</td>
				<td>${e.numberOfCredit}</td>
				<td>
					<form action="${editmarkdURL}" method="post">
						<input type="text" name='<portlet:namespace/>mark' value="${e.mark}" max="10" min="0"/>
						<input type="hidden" name='<portlet:namespace/>idSubjectOpen' value="${e.idSubjectOpen}"/>
						<input type="hidden" name='<portlet:namespace/>fkStudent' value="${e.fkStudent}"/>
						<input type="submit" value="Save">
					</form>
				</td>
				
			</tr>
		</c:forEach>
</table>
